var game = new Game();

var layout = [[1,1,1,1,1,1,1,1,1,1,1,1,1,1],[0,1,1,1,1,1,0,0,1,1,1,1,1,0],[0,0,0,0,1,1,0,0,0,0,0,1,1,0]];
var keys = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"];
game.init(layout, keys);

game.start(1000);

window.onload = function() {
    enableSelector(game);
    checkUser();
    findHero();
}